package cn.stylefeng.guns.modular.baijia;

import cn.stylefeng.guns.constant.ConstantsHolderContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: BaijiaController
 * @Author liuqiang
 * @Date 2020-02-13 12:17
 */

@RestController
@RequestMapping("/baijia")
public class BaijiaController {

    @Autowired
    private BaijiaScheduleTask task;

    @GetMapping("/test")
    public String test(){
        task.autoSubAccountList();
        return "success";
    }

    @GetMapping("/tt")
    public String test1(){
        return ConstantsHolderContext.getRechargeRemind().toString();
    }

    @GetMapping("/timer")
    public String timer(String dateStr){
        task.getSubAccountList(dateStr);
        return "success";
    }
}
